The Definitive Guide to AWS Infrastructure Automation by Bradley Campbell

The Definitive Guide to AWS Infrastructure Automation by Bradley Campbell

Author:Bradley Campbell
Language: eng
Format: epub
ISBN: 9781484253984
Publisher: Apress


Listing 4-24plan Command with Staging and Prod tfvars files

As you perhaps suspected, our threshold is now 70% as specified by the prod.tfvars file listed in Listing 4-23. While specifying the prod.tfvars file directly after specifying the stg.tfvars file is a bit contrived, it does demonstrate the fact that Terraform uses the value in the last-specified tfvars file, if more than one is specified and more than one of the files contain a value for the given parameter. Listing 4-25 shows how the solution looks if we incorporate the idea of a region-specific tfvars file that is meant to override a global file.$ tree -I 'setup'

.

├── app.tf

├── prod

│ ├── globals.tfvars

│ ├── us-east-1.tfvars

│ └── us-west-2.tfvars

└── qa

├── globals.tfvars

├── us-east-1.tfvars

└── us-west-2.tfvars



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.